//
//  jxsDateShortcutCalculationOneYear.m
//  ToDoList
//
// This code file is apart of project "iPhone-ToDo-List" 
// (http://code.google.com/p/iphone-todo-list/)
//
// Copyright (c) 2009 Frank Villasenor
//
// Distributed under the terms of the Lesser GNU General Public License.
// A copy of the license should be with these files. If not, you 
// can retrieve a copy from http://www.gnu.org/licenses/lgpl-3.0.txt
// 

#import "jxsDateShortcutCalculationOneYear.h"


@implementation jxsDateShortcutCalculationOneYear

- (NSDate *)calculateDate
{
	NSDate *today = [NSDate date];
	
	NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
	NSDateComponents *components = [[NSDateComponents alloc] init];
	
	components.month = 0;
	components.year = 1;
	NSDate *nextMonth = [gregorian dateByAddingComponents:components toDate:today options:0];
	[components release];
	[gregorian release];
	
	return nextMonth;
}
@end
